package com.gadgets.framework.start;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-16
 * 
 */
public abstract class AbstractInitLoaderProcess implements IStartInitLoaderProcess,Comparable<AbstractInitLoaderProcess>{

    protected final Logger logger = LoggerFactory.getLogger("startup");

    public AbstractInitLoaderProcess(int order) {
        this.order = order;
    }

    private final int order;

    @Override
    public int compareTo(AbstractInitLoaderProcess o) {
        return Integer.compare(this.order, o.order);
    }
}
